﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrdenCompraList2Grid.ascx.cs" 

Inherits="UILGestion.ObraAdmin.OrdenCompras.OrdenCompraList2Grid" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>

    
<asp:Panel runat="server" ID="PanelRecepcion" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>

<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="lb2" CommandName="Sort" ForeColor="Blue" CommandArgument="numDocumento" runat="server">NUMERO</asp:LinkButton>
                </th>
                <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" ForeColor="Blue" runat="server"></asp:LinkButton>
                </th>
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="fechaEmision" ForeColor="Blue" runat="server">FECHA</asp:LinkButton>
                </th>
                <th id="Th9" runat="server">
                    <asp:LinkButton ID="LinkButton7" CommandName="Sort" CommandArgument="formaPago" ForeColor="Blue" runat="server">FORMA PAGO</asp:LinkButton>
                </th>
                 <th id="Th8" runat="server">
                    <asp:LinkButton ID="LinkButton6" CommandName="Sort" CommandArgument="estado" ForeColor="Blue" runat="server">ESTADO</asp:LinkButton>
                </th>
                <th id="Th4" runat="server" >
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="subTotal" ForeColor="Blue" runat="server">SUB TOTAL</asp:LinkButton>
                </th>
                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="IGVTotal" ForeColor="Blue" runat="server">IGV</asp:LinkButton>
                </th>
               <th id="Th6" runat="server">
                    <asp:LinkButton ID="LinkButton4" CommandName="Sort" CommandArgument="totalStr" ForeColor="Blue" runat="server">TOTAL</asp:LinkButton>
               </th>
               <th id="Th10" runat="server">
                    <asp:LinkButton ID="LinkButton8" CommandName="Sort" CommandArgument="numComparativo" ForeColor="Blue" runat="server">COMPARATIVO</asp:LinkButton>
               </th>
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="obraStr" ForeColor="Blue" runat="server">OBRA</asp:LinkButton>
               </th>
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
            <td width="90px">
                <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numDocumentoStr").ToString()%>'  
                 Target="_self"  ID="Hyperlink3"
                NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"formulario").ToString()
                %>' 
               />   
                
            </td>
            <td width="70px">
             <asp:Hyperlink runat= "server" ForeColor="Blue"
                Text="Imprimir"
                 Target="_blank"  
                 ID="Hyperlink1"
                NavigateUrl='<%# "~/rpt/PrintForm.aspx?type="+ DataBinder.Eval(Container.DataItem,"typePrint").ToString()  +"&id=" + DataBinder.Eval (Container.DataItem,"idInternal").ToString() + 
                 "&idObra=" + DataBinder.Eval(Container.DataItem,"idObra").ToString()%>' 
                 
                  
               />  
            </td>
            <td  width="80px">
                    <%# Eval("fechaEmisionStr")%> <br />
            </td>
          
            
              <td width="120px">
                <%# Eval("formaPago")%><br />
            </td>
             <td>
                <%# Eval("estado")%><br />
            </td>
            <td align="right" width="90px">
            <%# Eval("subTotalMon")%><br />
                 
            </td>
             <td align="right" width="90px">
            <%# Eval("IGVTotalMon")%><br />
                 
            </td>
             <td align="right" Width="90px">
            <%# Eval("totalMon")%><br />
                 
            </td>
          <td align="right">
           <asp:Hyperlink runat= "server"   ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numComparativo").ToString()%>'  
                 Target="_self"  ID="Hyperlink2"
                NavigateUrl='<%# "~/ObraAdmin/Comparativos/ComparativoReadForm.aspx?id=" + 
                DataBinder.Eval (Container.DataItem,"idComparativo").ToString() + 
                 "&idObra=" + DataBinder.Eval(Container.DataItem,"idObra").ToString()%>' 
               />   
          </td>
           <td align="right" Width="220px">
            <%# Eval("obraStr")%><br />
                 
            </td>

        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>










</asp:Panel>

    




    




    
   

        

    





    
   <%--  <p>
         &nbsp;</p>
<asp:Panel ID="legalParentPanel0" runat="server" Height="250px">
    <asp:Panel ID="legalPanel0" runat="server" Height="250px" 
        Style="background-color:White;border:solid 1px Gray;color:Black" Width="400px">
        <asp:Panel ID="Panel23" runat="server" 
            CssClass="Heading secTitle AreaHeading ms-crm-List-Header ">
            <div style="text-align:left">
                <table>
                    <tr>
                        <td align="right">
                            CHU:</td>
                        <td>
                            <%# Eval("codigo").ToString() + ',' + Eval("piso").ToString() + ',' + Eval("localizacion").ToString()%> 
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            NOMBRE:</td>
                        <td>
                            <%# Eval("clienteStr").ToString()  %> 
                        </td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
        <asp:Panel ID="Panel24" runat="server" Height="180px">
            <table class="ui-accordion">
                <tr class="Heading secTitle AreaHeading ms-crm-List-Header ">
                    <td align="center">
                        PROCESO</td>
                    <td align="center">
                        FECHA</td>
                </tr>
                <tr>
                    <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                        Inscripción Cliente:</td>
                    <td align="left">
                        <asp:TextBox ID="legalInsClienteTXT0" runat="server" TabIndex="1" 
                            Text='<%# Eval("legalInsClienteStr")%>' Width="70px"></asp:TextBox>
                        <asp:ImageButton ID="ImageButtons3" runat="Server" 
                            AlternateText="Click aqui para mostrar calendario" 
                            ImageUrl="~/Images/month.gif" Width="16px" />
                        <asp:CalendarExtender ID="CalendarExtender17" runat="server" 
                            PopupButtonID="ImageButtons2" TargetControlID="legalInsClienteTXT">
                        </asp:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                        Entrega de vivienda:</td>
                    <td align="left">
                        <asp:TextBox ID="legalEntregaTXT0" runat="server" TabIndex="1" 
                            Text='<%# Eval("legalEntregaStr")%>' Width="70px"></asp:TextBox>
                        <asp:ImageButton ID="ImageButton16" runat="Server" 
                            AlternateText="Click aqui para mostrar calendario" 
                            ImageUrl="~/Images/month.gif" Width="16px" />
                        <asp:CalendarExtender ID="CalendarExtender18" runat="server" 
                            PopupButtonID="ImageButton11" TargetControlID="legalEntregaTXT">
                        </asp:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                        Levant Hipot. Otro Bancos:</td>
                    <td align="left">
                        <asp:TextBox ID="legalHipotOtroBancoTXT0" runat="server" TabIndex="1" 
                            Text='<%# Eval("legalHipotOtroBancoStr")%>' Width="70px"></asp:TextBox>
                        <asp:ImageButton ID="ImageButton17" runat="Server" 
                            AlternateText="Click aqui para mostrar calendario" 
                            ImageUrl="~/Images/month.gif" Width="16px" />
                        <asp:CalendarExtender ID="CalendarExtender19" runat="server" 
                            PopupButtonID="ImageButton15" TargetControlID="legalHipotOtroBancoTXT">
                        </asp:CalendarExtender>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="Panel25" runat="server">
            <table width="100%">
                <tr class="Heading secTitle AreaHeading ms-crm-List-Header ">
                    <td>
                        <asp:Button ID="OKLegalBTN0" runat="server" BorderColor="Control" 
                            CommandArgument='<%# Eval("idInternal")%>' CssClass="ms-crm-List-Header" 
                            OnClick="opcionBTN" OnClientClick="return confirm('Usted quiere guardar?')" 
                            Text="Guardar" />
                        <asp:Button ID="cancelarLegalBTN0" runat="server" BorderColor="Control" 
                            CssClass="ms-crm-List-Header" Text="Cancelar" />
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </asp:Panel>
</asp:Panel>


    --%>




    




    
   

        

    





    
     